package org.pupil.register;

import org.pupil.common.URL;

import java.util.List;

/**
 * @Description: 注册中心接口
 * @Author: pupil
 * @Date: 2024/07/10 下午 10:01
 */
public interface RegistryService {

    // 服务注册
    void register(URL url) throws Exception;

    // 取消服务注册
    void unRegister(URL url) throws Exception;

    // 服务发现
    List<URL> discoveries(String serviceName, String version) throws Exception;

    // 服务订阅
    void subscribe(URL url) throws Exception;

    // 取消服务订阅
    void unSubscribe(URL url);
}
